<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="template-header.jsp" />
<h1>Location bearbeiten</h1>

<form method="post" action="/eventdb/admin/savelocation.html" name="locationForm" id="formId" enctype="multipart/form-data">
	<input type="hidden" name="id" value="${location.id}" />
	<input type="hidden" name="picture" value="${location.picture}" />
	<table class="editing">
		<tbody>
			<tr>
				<td>Name:</td>
				<td><input type="text" name="name"value="${location.name}" size="50" oninput="ValidateForm();" /></td>
			</tr>
			<tr>
				<td>Strasse:</td>
				<td><input type="text" name="strasse" value="${location.strasse}" size="50" oninput="ValidateForm();" /></td>
			</tr>
			<tr>
				<td>PLZ und Ort:</td>
				<td><input type="text" name="plz" id="numId" value="${location.plz}" size="5" maxlength="5" oninput="ValidateForm();" />
					<input type="text" name="ort" value="${location.ort}" size="42" oninput="ValidateForm();" /></td>
			</tr>
			<tr>
				<td>Beschreibung:</td>
				<td><textarea name="description" cols="49" rows="5" oninput="ValidateForm();">${location.description}</textarea></td>
			</tr>
			<tr>
				<td>Bild</td>
				<td><input type="file" name="pic">&nbsp;200x200 Pixel</td>
			</tr>
		</tbody>
	</table>
	<input type="submit" class="submit" id="submit" value="Speichern" onclick="return ValidateForm();"/>
</form>
<script>ValidateForm();</script>
<jsp:include page="template-footer.jsp" />